package com.example.camelfilecopy;


import com.example.camelfilecopy.controller.FileTranfer;
import org.apache.camel.spring.boot.CamelSpringBootApplicationController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class CamelfilecopyApplication {

    public static void main(String[] args) {
        //SpringApplication.run(CamelfilecopyApplication.class, args);
        final ApplicationContext context = new SpringApplication(CamelfilecopyApplication.class).run(args);
        final CamelSpringBootApplicationController controller = context.getBean(CamelSpringBootApplicationController.class);
        controller.run();

    }

}
